#ifndef LOGINWIDGET_H
#define LOGINWIDGET_H

#include <QWidget>
#include<QTcpSocket>
#include"mainwidget.h"
#include "keyboard.h"
namespace Ui {
class LoginWidget;
}

class LoginWidget : public QWidget
{
    Q_OBJECT

public:
    explicit LoginWidget(QWidget *parent = 0);
    ~LoginWidget();
//public slots:
//    void show();
private slots:
    void on_pushButton_login_clicked();
    void recv_data();
    void on_pushButton_register_clicked();
    void connectSuccess();

private:
    Ui::LoginWidget *ui;
    QTcpSocket *socket;
    MainWidget *mainWidget;
    KeyBoard *keyboard;
    void goToMain();
    void getSocket();
};

#endif // LOGINWIDGET_H
